import request from '@/utils/request'

export function page(query){
  return request({
    url: '/system/tenant/page',
    method: 'get',
    params: query
  })
}
//新增租户
export function create(data) {
  return request({
    url: '/system/tenant/create',
    method: 'post',
    data: data
  })
}
//修改
export function update(data) {
  return request({
    url: '/system/tenant/update',
    method: 'put',
    data: data
  })
}
//删除
export function deleteTenant(ids) {
  return request({
    url: '/system/tenant/delete/' + ids,
    method: 'delete'
  })
}
//详情
export function getTenant(id){
  return request({
    url: '/system/tenant/detail/'+id,
    method: 'get'
  })
}
export function changeTenantStatus(query){
  return request({
    url: '/system/tenant/change-status',
    method: 'get',
    params: query
  })
}
